﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="GBInfo.aspx.cs" Inherits="GBInfo" Title="检验依据（国标）" Culture="auto"
    UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <h1 id="pagetitle" class="pagetitle">
        检验依据管理
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="anistyle" id="ani">
                    正在加载数据，请耐心等待...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </h1>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div class="condition">
                <div class="conditioninput">
                    <span>请选择要查看的依据：</span><asp:DropDownList ID="DDlGB_Code" runat="server" AutoPostBack="True"
                        Width="212px" OnSelectedIndexChanged="DDlGB_Code_SelectedIndexChanged">
                    </asp:DropDownList>
                </div>
                <div class="conditionbutton">
                    <asp:Button ID="CreateGo" runat="server"  Width="120px" Text="创建新检验依据" OnClick="CreateGo_Click" />
                </div>
            </div>
            <div runat="server" id="divResult" class="divResult">
                <asp:Label ID="OperationResult" CssClass="result" runat="server" Text=""></asp:Label>
            </div>
            <div class="InfoArea">
            <asp:Panel ID="EditPanel" runat="server" Width="100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehaveborder">
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;依据代码：
                        </td>
                        <td style="width: 300px;">
                            <asp:Label ID="EditGB_Code" runat="server" Width="120px" class="id"></asp:Label>
                        </td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;检验依据名称：
                        </td>
                        <td style="width: 300px;">
                            <asp:TextBox ID="EditGB_Title" runat="server" Width="120px" MaxLength="100" ValidationGroup="Edit"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="EditRequiredGB_Title" runat="server" ControlToValidate="EditGB_Title"
                                ErrorMessage="请输入检验依据名称！" ValidationGroup="Edit"></asp:RequiredFieldValidator></td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 40px;">
                            &nbsp; &nbsp;摘要：
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="EditGB_Subject" runat="server" Width="99%" Height="40px" TextMode="MultiLine"
                                MaxLength="200" ValidationGroup="Edit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;状态：
                        </td>
                        <td>
                            <asp:DropDownList ID="EditGB_Status" runat="server" Width="125px">
                                <asp:ListItem Value="0">在用</asp:ListItem>
                                <asp:ListItem Value="1">作废</asp:ListItem>
                            </asp:DropDownList></td>
                        <td style="width: 150px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 60px; padding-top: 6px;" valign="top">
                            &nbsp; &nbsp;备注信息：
                        </td>
                        <td style="padding-top: 6px;" valign="top" colspan="2">
                            <asp:TextBox ID="EditRem" runat="server" Width="99%" Height="60px" TextMode="MultiLine"
                                MaxLength="200" ValidationGroup="Edit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td  class="tblfooter" colspan="3"
                            align="right">
                            <asp:Button ID="EditSave" runat="server" Text="保 存" Width="90px" OnClick="EditSave_Click"
                                ValidationGroup="Edit" />
                            <asp:Button ID="EditBack" runat="server" Text="返 回" Width="90px" OnClick="EditBack_Click" /></td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="CreatePanel" runat="server" Width="100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehaveborder">
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;依据代码：
                        </td>
                        <td style="width: 300px;">
                            <asp:TextBox ID="CreateGB_Code" runat="server" Width="120px" MaxLength="50" ValidationGroup="Create" class="id"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="CreateRequiredGB_Code" runat="server" ControlToValidate="CreateGB_Code"
                                ErrorMessage="请输入检验依据代码！" ValidationGroup="Create"></asp:RequiredFieldValidator></td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;检验依据名称：
                        </td>
                        <td style="width: 300px;">
                            <asp:TextBox ID="CreateGB_Title" runat="server" Width="120px" MaxLength="100" ValidationGroup="Create"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="CreateRequiredGB_Title" runat="server" ControlToValidate="CreateGB_Title"
                                ErrorMessage="请输入检验依据名称！" ValidationGroup="Create"></asp:RequiredFieldValidator>
                        </td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 40px;">
                            &nbsp; &nbsp;摘要：
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="CreateGB_Subject" runat="server" Width="99%" Height="40px" TextMode="MultiLine"
                                MaxLength="200" ValidationGroup="Create"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;状态：
                        </td>
                        <td style="width: 300px;">
                            <asp:DropDownList ID="CreateGB_Status" runat="server" Width="125px">
                                <asp:ListItem Value="0">在用</asp:ListItem>
                                <asp:ListItem Value="1">作废</asp:ListItem>
                            </asp:DropDownList></td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 60px; padding-top: 6px;" valign="top">
                            &nbsp; &nbsp;备注信息：
                        </td>
                        <td style="padding-top: 6px;" valign="top" colspan="2">
                            <asp:TextBox ID="CreateRem" runat="server" Width="99%" Height="60px" TextMode="MultiLine"
                                MaxLength="200" ValidationGroup="Create"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td  class="tblfooter" colspan="3"
                            align="right">
                            &nbsp;<asp:Button ID="CreateSave" runat="server" Text="保 存" Width="90px" OnClick="CreateSave_Click"
                                ValidationGroup="Create" />
                            <asp:Button ID="CreateBack" runat="server" Text="返 回" Width="90px" OnClick="CreateBack_Click" /></td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="DetailPanel" runat="server" Width="100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehaveborder">
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;依据代码：
                        </td>
                        <td style="width: 300px;">
                            <asp:Label ID="DetailGB_Code" runat="server" Width="99%" class="id"></asp:Label>
                        </td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;检验依据名称：
                        </td>
                        <td style="width: 300px;">
                            <asp:Label ID="DetailGB_Title" runat="server" Width="99%"></asp:Label>
                        </td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 40px;">
                            &nbsp; &nbsp;摘要：
                        </td>
                        <td colspan="2">
                            <asp:Label ID="DetailGB_Subject" runat="server" Width="99%"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp; &nbsp;状态：
                        </td>
                        <td style="width: 300px;">
                            <asp:Label ID="DetailGB_Status" runat="server" Width="99%"></asp:Label>
                        </td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 60px; padding-top: 6px;" valign="top">
                            &nbsp; &nbsp;备注信息：
                        </td>
                        <td style="padding-top: 6px;" valign="top" colspan="2">
                            <asp:Label ID="DetailRem" runat="server" Width="99%"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td  class="tblfooter" colspan="3">
                            <asp:Button ID="EditGo" runat="server" Text="修 改" Width="90px" OnClick="EditGo_Click" />
                            <asp:Button ID="DeleteGo" runat="server" OnClientClick="javascript:return confirm('您确定要删除此条记录吗？');"
                                Text="删 除" Width="90px" OnClick="DeleteGo_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
